/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package databaseapp;
//import static databaseapp.Main.conn;
import java.sql.*;
/**
 *
 * Code by ThangTCNB
 */

public class Connect {
    Connection conn = null;
    PreparedStatement statement = null;
    ResultSet rs = null;
    public void Ketnoi() throws SQLException
    {
        String dbURL = "jdbc:mysql://localhost:3306/test";
        String username = "root";
        String password = "";
        conn = DriverManager.getConnection(dbURL, username, password);
    }

}
